//    Copyright (C) Kherty.  All rights reserved.
using System.Windows;
using System.Windows.Input;

namespace OpenLS.Chart.UI
{
    public partial class PlotAreaResources
    {
        public PlotAreaResources()
        {
            InitializeComponent();
        }
        void OnFormatPlotArea(object sender, ExecutedRoutedEventArgs args)
        {
            FrameworkElement e = (FrameworkElement)sender;
            PropertyHelper.ShowPropertiesFor(ChartElement.GetPlotArea(e), e, ChartCommands.FormatPlotArea.Text, PropertyTabHint.None);
            args.Handled = true;
        }
        void Always(object sender, CanExecuteRoutedEventArgs args)
        {
            args.CanExecute = true;
            args.Handled = true;
        }
        static readonly PlotAreaResources _PlotAreaResources = new PlotAreaResources();
        public static DataTemplate PlotAreaBackgroundTemplate
        {
            get
            {
                return (DataTemplate)_PlotAreaResources["PlotAreaBackgroundTemplate"];
            }
        }
    }
}
